package ar.com.angrymachine.hunter.locations;

import java.awt.Graphics;
import java.awt.Rectangle;

import ar.com.angrymachine.hunter.Activity;
import ar.com.angrymachine.hunter.GraphicStyles;
import ar.com.angrymachine.hunter.Locale;
import ar.com.angrymachine.hunter.HunterResourceManager;

public class ColossusSoftSpotActivity extends Activity
{
	ColossusActivitySet parentActivitySet;
	
	public ColossusSoftSpotActivity(ColossusActivitySet parentSet)
	{
		parentActivitySet = parentSet;
	}
	
	public String getActionText()
	{
		return Locale.IRRITATE;
	}

	public String getDescription()
	{
		return Locale.COLOSSUS_SOFTSPOT;
	}

	public void paint(Graphics g, Rectangle activityArea)
	{
        GraphicStyles.paintDefaultActivity(g, this, activityArea, HunterResourceManager.getImage("town-arena.png"));
	}

	public void update(int delta, boolean action, boolean timeIsRunning)
	{
		if(timeIsRunning && action)
		{
			// irritate the colossus
			parentActivitySet.irritated = action;
		}
	}
}
